"""
@File    : father3.py
@Author  : WorldWind(1772830365@qq.com)
@Time    : 2025/7/14
@Address : ChangSha - BoWeiFeng
@Date    : 2025/7/14 下午2:58
"""


class Father:
    def __init__(self):
        print('This is __init__ method. Father class startup')

    def sing(self):
        pass

    def __del__(self):
        print('This is __del__ method. The Father class has been recycled')


class son(Father):
    def __init__(self):
        print('This is __init__ method. son class startup')

    def sing(self):
        print('I like singing!')

    def __del__(self):
        print('This is __del__ method. The son class has been recycled')


class girl(Father):
    def __init__(self):
        print('This is __init__ method. girl class startup')

    def sing(self):
        print("I don't like singing!")

    def __del__(self):
        print('This is __del__ method. The girl class has been recycled')


s = son()
s.sing()
s = girl()
s.sing()
